GtkTextView: disconnect the magifier on destroy
authorMatthias Clasen <mclasen@redhat.com>
Sun, 21 Dec 2014 00:19:24 +0000 (19:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 21 Dec 2014 00:19:24 +0000 (19:19 -0500)
This prevents warnings that would otherwise happen when
the magifier is finalized.

gtk/gtktextview.c

index b619ab09987e07cf0aabd8b1cf3932b8de22fea8..117e561cea3923e2ddc2a67417330ef9e05811d9 100644 (file)
@@ -3272,6 +3272,9 @@ gtk_text_view_destroy (GtkWidget *widget)
       priv->pixel_cache = NULL;
     }
 
+  if (priv->magnifier)
+    _gtk_magnifier_set_inspected (GTK_MAGNIFIER (priv->magnifier), NULL);
+
   GTK_WIDGET_CLASS (gtk_text_view_parent_class)->destroy (widget);
 }